const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,  // 关闭语法检查
  devServer: {
    proxy: {
      "/sph": {
        target: "http://sph-h5-api.atguigu.cn",
        ws: true,  // 用于支持webscoket
        changeOrigin: true,  // 是否开启跨域
        pathRewrite: {'^/sph': ''}
      }
    }
  }
})
